package com.cn.dream_order_server.pojo;

import java.util.ArrayList;
import java.util.List;

public class OrderLogisticstypeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OrderLogisticstypeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andLogisticstypeIdIsNull() {
            addCriterion("logisticsType_id is null");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeIdIsNotNull() {
            addCriterion("logisticsType_id is not null");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeIdEqualTo(String value) {
            addCriterion("logisticsType_id =", value, "logisticstypeId");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeIdNotEqualTo(String value) {
            addCriterion("logisticsType_id <>", value, "logisticstypeId");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeIdGreaterThan(String value) {
            addCriterion("logisticsType_id >", value, "logisticstypeId");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeIdGreaterThanOrEqualTo(String value) {
            addCriterion("logisticsType_id >=", value, "logisticstypeId");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeIdLessThan(String value) {
            addCriterion("logisticsType_id <", value, "logisticstypeId");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeIdLessThanOrEqualTo(String value) {
            addCriterion("logisticsType_id <=", value, "logisticstypeId");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeIdLike(String value) {
            addCriterion("logisticsType_id like", value, "logisticstypeId");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeIdNotLike(String value) {
            addCriterion("logisticsType_id not like", value, "logisticstypeId");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeIdIn(List<String> values) {
            addCriterion("logisticsType_id in", values, "logisticstypeId");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeIdNotIn(List<String> values) {
            addCriterion("logisticsType_id not in", values, "logisticstypeId");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeIdBetween(String value1, String value2) {
            addCriterion("logisticsType_id between", value1, value2, "logisticstypeId");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeIdNotBetween(String value1, String value2) {
            addCriterion("logisticsType_id not between", value1, value2, "logisticstypeId");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeNameIsNull() {
            addCriterion("logisticsType_name is null");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeNameIsNotNull() {
            addCriterion("logisticsType_name is not null");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeNameEqualTo(String value) {
            addCriterion("logisticsType_name =", value, "logisticstypeName");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeNameNotEqualTo(String value) {
            addCriterion("logisticsType_name <>", value, "logisticstypeName");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeNameGreaterThan(String value) {
            addCriterion("logisticsType_name >", value, "logisticstypeName");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeNameGreaterThanOrEqualTo(String value) {
            addCriterion("logisticsType_name >=", value, "logisticstypeName");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeNameLessThan(String value) {
            addCriterion("logisticsType_name <", value, "logisticstypeName");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeNameLessThanOrEqualTo(String value) {
            addCriterion("logisticsType_name <=", value, "logisticstypeName");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeNameLike(String value) {
            addCriterion("logisticsType_name like", value, "logisticstypeName");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeNameNotLike(String value) {
            addCriterion("logisticsType_name not like", value, "logisticstypeName");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeNameIn(List<String> values) {
            addCriterion("logisticsType_name in", values, "logisticstypeName");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeNameNotIn(List<String> values) {
            addCriterion("logisticsType_name not in", values, "logisticstypeName");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeNameBetween(String value1, String value2) {
            addCriterion("logisticsType_name between", value1, value2, "logisticstypeName");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeNameNotBetween(String value1, String value2) {
            addCriterion("logisticsType_name not between", value1, value2, "logisticstypeName");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther1IsNull() {
            addCriterion("logisticsType_other1 is null");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther1IsNotNull() {
            addCriterion("logisticsType_other1 is not null");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther1EqualTo(String value) {
            addCriterion("logisticsType_other1 =", value, "logisticstypeOther1");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther1NotEqualTo(String value) {
            addCriterion("logisticsType_other1 <>", value, "logisticstypeOther1");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther1GreaterThan(String value) {
            addCriterion("logisticsType_other1 >", value, "logisticstypeOther1");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther1GreaterThanOrEqualTo(String value) {
            addCriterion("logisticsType_other1 >=", value, "logisticstypeOther1");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther1LessThan(String value) {
            addCriterion("logisticsType_other1 <", value, "logisticstypeOther1");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther1LessThanOrEqualTo(String value) {
            addCriterion("logisticsType_other1 <=", value, "logisticstypeOther1");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther1Like(String value) {
            addCriterion("logisticsType_other1 like", value, "logisticstypeOther1");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther1NotLike(String value) {
            addCriterion("logisticsType_other1 not like", value, "logisticstypeOther1");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther1In(List<String> values) {
            addCriterion("logisticsType_other1 in", values, "logisticstypeOther1");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther1NotIn(List<String> values) {
            addCriterion("logisticsType_other1 not in", values, "logisticstypeOther1");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther1Between(String value1, String value2) {
            addCriterion("logisticsType_other1 between", value1, value2, "logisticstypeOther1");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther1NotBetween(String value1, String value2) {
            addCriterion("logisticsType_other1 not between", value1, value2, "logisticstypeOther1");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther2IsNull() {
            addCriterion("logisticsType_other2 is null");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther2IsNotNull() {
            addCriterion("logisticsType_other2 is not null");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther2EqualTo(String value) {
            addCriterion("logisticsType_other2 =", value, "logisticstypeOther2");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther2NotEqualTo(String value) {
            addCriterion("logisticsType_other2 <>", value, "logisticstypeOther2");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther2GreaterThan(String value) {
            addCriterion("logisticsType_other2 >", value, "logisticstypeOther2");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther2GreaterThanOrEqualTo(String value) {
            addCriterion("logisticsType_other2 >=", value, "logisticstypeOther2");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther2LessThan(String value) {
            addCriterion("logisticsType_other2 <", value, "logisticstypeOther2");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther2LessThanOrEqualTo(String value) {
            addCriterion("logisticsType_other2 <=", value, "logisticstypeOther2");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther2Like(String value) {
            addCriterion("logisticsType_other2 like", value, "logisticstypeOther2");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther2NotLike(String value) {
            addCriterion("logisticsType_other2 not like", value, "logisticstypeOther2");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther2In(List<String> values) {
            addCriterion("logisticsType_other2 in", values, "logisticstypeOther2");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther2NotIn(List<String> values) {
            addCriterion("logisticsType_other2 not in", values, "logisticstypeOther2");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther2Between(String value1, String value2) {
            addCriterion("logisticsType_other2 between", value1, value2, "logisticstypeOther2");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther2NotBetween(String value1, String value2) {
            addCriterion("logisticsType_other2 not between", value1, value2, "logisticstypeOther2");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther3IsNull() {
            addCriterion("logisticsType_other3 is null");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther3IsNotNull() {
            addCriterion("logisticsType_other3 is not null");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther3EqualTo(String value) {
            addCriterion("logisticsType_other3 =", value, "logisticstypeOther3");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther3NotEqualTo(String value) {
            addCriterion("logisticsType_other3 <>", value, "logisticstypeOther3");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther3GreaterThan(String value) {
            addCriterion("logisticsType_other3 >", value, "logisticstypeOther3");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther3GreaterThanOrEqualTo(String value) {
            addCriterion("logisticsType_other3 >=", value, "logisticstypeOther3");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther3LessThan(String value) {
            addCriterion("logisticsType_other3 <", value, "logisticstypeOther3");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther3LessThanOrEqualTo(String value) {
            addCriterion("logisticsType_other3 <=", value, "logisticstypeOther3");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther3Like(String value) {
            addCriterion("logisticsType_other3 like", value, "logisticstypeOther3");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther3NotLike(String value) {
            addCriterion("logisticsType_other3 not like", value, "logisticstypeOther3");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther3In(List<String> values) {
            addCriterion("logisticsType_other3 in", values, "logisticstypeOther3");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther3NotIn(List<String> values) {
            addCriterion("logisticsType_other3 not in", values, "logisticstypeOther3");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther3Between(String value1, String value2) {
            addCriterion("logisticsType_other3 between", value1, value2, "logisticstypeOther3");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther3NotBetween(String value1, String value2) {
            addCriterion("logisticsType_other3 not between", value1, value2, "logisticstypeOther3");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther4IsNull() {
            addCriterion("logisticsType_other4 is null");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther4IsNotNull() {
            addCriterion("logisticsType_other4 is not null");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther4EqualTo(Integer value) {
            addCriterion("logisticsType_other4 =", value, "logisticstypeOther4");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther4NotEqualTo(Integer value) {
            addCriterion("logisticsType_other4 <>", value, "logisticstypeOther4");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther4GreaterThan(Integer value) {
            addCriterion("logisticsType_other4 >", value, "logisticstypeOther4");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther4GreaterThanOrEqualTo(Integer value) {
            addCriterion("logisticsType_other4 >=", value, "logisticstypeOther4");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther4LessThan(Integer value) {
            addCriterion("logisticsType_other4 <", value, "logisticstypeOther4");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther4LessThanOrEqualTo(Integer value) {
            addCriterion("logisticsType_other4 <=", value, "logisticstypeOther4");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther4In(List<Integer> values) {
            addCriterion("logisticsType_other4 in", values, "logisticstypeOther4");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther4NotIn(List<Integer> values) {
            addCriterion("logisticsType_other4 not in", values, "logisticstypeOther4");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther4Between(Integer value1, Integer value2) {
            addCriterion("logisticsType_other4 between", value1, value2, "logisticstypeOther4");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther4NotBetween(Integer value1, Integer value2) {
            addCriterion("logisticsType_other4 not between", value1, value2, "logisticstypeOther4");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther5IsNull() {
            addCriterion("logisticsType_other5 is null");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther5IsNotNull() {
            addCriterion("logisticsType_other5 is not null");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther5EqualTo(Integer value) {
            addCriterion("logisticsType_other5 =", value, "logisticstypeOther5");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther5NotEqualTo(Integer value) {
            addCriterion("logisticsType_other5 <>", value, "logisticstypeOther5");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther5GreaterThan(Integer value) {
            addCriterion("logisticsType_other5 >", value, "logisticstypeOther5");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther5GreaterThanOrEqualTo(Integer value) {
            addCriterion("logisticsType_other5 >=", value, "logisticstypeOther5");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther5LessThan(Integer value) {
            addCriterion("logisticsType_other5 <", value, "logisticstypeOther5");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther5LessThanOrEqualTo(Integer value) {
            addCriterion("logisticsType_other5 <=", value, "logisticstypeOther5");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther5In(List<Integer> values) {
            addCriterion("logisticsType_other5 in", values, "logisticstypeOther5");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther5NotIn(List<Integer> values) {
            addCriterion("logisticsType_other5 not in", values, "logisticstypeOther5");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther5Between(Integer value1, Integer value2) {
            addCriterion("logisticsType_other5 between", value1, value2, "logisticstypeOther5");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeOther5NotBetween(Integer value1, Integer value2) {
            addCriterion("logisticsType_other5 not between", value1, value2, "logisticstypeOther5");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}